<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>会员注册项管理 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="JFinalShop Team" />
<meta name="Copyright" content="JFinalShop" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<% include("/common/include.html"){}%>
<link href="${base}/template/admin/css/list.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/template/admin/js/list.js"></script>
</head>
<body class="list">
	<div class="body">
		<div class="listBar">
			<h1><span class="icon">&nbsp;</span>会员注册项管理&nbsp;<span class="pageInfo">总记录数: ${pager.totalRow}(共${pager.totalPage}页)</span></h1>
		</div>
		<form id="listForm" action="${base}/memberAttribute/list" method="post">
			<div class="operateBar">
				<input type="button" class="addButton" onclick="location.href='${base}/memberAttribute/add'" value="添加注册项" />
			</div>
			<table class="listTable">
				<tr>
					<th class="check">
						<input type="checkbox" class="allCheck" />
					</th>
					<th>
						<span class="sort" name="name">名称</span>
					</th>
					<th>
						<span class="sort" name="attributeType">类型</span>
					</th>
					<th>
						<span class="sort" name="isRequired">是否必填</span>
					</th>
					<th>
						<span class="sort" name="isEnabled">是否启用</span>
					</th>
					<th>
						<span class="sort" name="orderList">排序</span>
					</th>
					<th>
						操作
					</th>
				</tr>
				<%for(list in pager.list){%>
					<tr>
						<td>
							<input type="checkbox" name="ids" value="${list.id!}" />
						</td>
						<td>
							${list.name}
						</td>
						<td>
							${i18n("AttributeType." + list.attributeType)}	
						</td>
						<td>
							<%if (list.isRequired == true){%>
								<img src="${base}/template/admin/images/list_true_icon.gif" />
							<%}else{%>
								<img src="${base}/template/admin/images/list_false_icon.gif" />
							<%}%>
						</td>
						<td>
							<%if (list.isEnabled == true){%>
								<img src="${base}/template/admin/images/list_true_icon.gif" />
							<%}else{%>
								<img src="${base}/template/admin/images/list_false_icon.gif" />
							<%}%>
						</td>
						<td>
							${list.orderList}
						</td>
						<td>
							<a href="${base}/memberAttribute/edit?id=${list.id}" title="编辑">[编辑]</a>
						</td>
					</tr>
				<%}%>
			</table>
			<%if (pager.list.~size > 0){%>
				<div class="pagerBar">
					<input type="button" class="deleteButton" url="${base}/memberAttribute/delete" value="删 除" disabled hidefocus="true" />
					<% include("/admin/pager.html"){}%>
				</div>
			<%}else{%>
				<div class="noRecord">
					没有找到任何记录!
				</div>
			<%}%>
		</form>
	</div>
</body>
</html>